Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Can @For and @While works on Web?
~Sven Kifoogenli 19.Dec.03 03:25 PM a Web browser
Domino Designer 6.0.2 CF2 Windows 2000


Yes it can, but it works in the same way as an @If or any other formula, so if you want to perform more than one function you need to nest the functions in an @Do statement,as below. Also it's a good idea to use [FailSilent] for @DBLookups in ND6 so you don't have to check for potential errors. Also, is the day field you're trying to set a number field?

@For(n:= 1;n <= @Elements(AllStaff);n:= n + 1;
@Do(@SetField("Leave" + @Text(n);AllStaff[n]);
xKey:=@Text(@Year(@Today)) + Applicant + AllStaff[n];
Tkn_process:=@DbLookup("Notes":"NoCache"; @DbName;"WLS";xKey;"NoOfDay";[FailSilent]);
Tot:=@If(@IsError(@Sum(Tkn_process));0;@Sum(Tkn_process));
@SetField("Day" + @Text(n);Tot)))

Hope that works - it can be a bit fiddly sometimes...




Can @For and @While works on Web? (~Samuel Elachek... 19.Dec.03)
. . RE: Can @For and @While works on We... (~Richard Xanjip... 19.Dec.03)
. . RE: Can @For and @While works on We... (~Sven Kifoogenl... 19.Dec.03)
. . . . RE: Can @For and @While works on We... (~Samuel Elachek... 20.Dec.03)
. . . . . . RE: Can @For and @While works on We... (~Sven Kifoogenl... 5.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS